package pers.burgess.fsm.model;

import java.io.Serializable;
import java.util.Date;

public class Message implements Serializable {

	private static final long serialVersionUID = 8652389023465866600L;

	public static final Integer CLIENT_MSG = 0x00;
	public static final Integer SERVER_MSG = 0x01;

	private String header;
	private String message;

	private int type;
	private Date sendDate;
	private Date receiveDate;
	
	public Message () {}
	
	public Message (String header, String message, int type) {
		this.header = header;
		this.message = message;
		this.type = type;
		this.sendDate = new Date();
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public static Integer getClientMsg() {
		return CLIENT_MSG;
	}

	public static Integer getServerMsg() {
		return SERVER_MSG;
	}

}
